unit uSplash;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TfrmSplash = class(TForm)
    Image1: TImage;
    Label1: TLabel;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
   procedure UpdateForm(AInfo:String);     
  end;

  
var
  frmSplash: TfrmSplash;

implementation

uses uMainVar;

{$R *.dfm}

{ TfrmSplash }

procedure TfrmSplash.UpdateForm(AInfo: String);
begin
   Label1.Caption:=AInfo;
   label1.Left:=(self.Width div 2) - (label1.Width div 2);
   Label1.Update;
   Self.Update;
   Self.Refresh;
   Sleep(100);
end;

procedure TfrmSplash.FormCreate(Sender: TObject);
begin
  if FileExists(gSplashPicFile) then
  begin
  Image1.Picture.LoadFromFile(gSplashPicFile);
  Image1.Update;
  self.Update;
  Self.Refresh;
  sleep(20);
  end;
end;

end.
